package com.peas.platform.module.icims.base.auth.domain.impl;

import com.peas.platform.framework.mybatisplus.domain.BaseDomainImpl;
import com.peas.platform.framework.mybatisplus.repository.BaseRepository;
import com.peas.platform.module.icims.base.auth.adapter.repository.UserRoleRepository;
import com.peas.platform.module.icims.base.auth.adapter.repository.po.UserRolePo;
import com.peas.platform.module.icims.base.auth.domain.UserRoleDomain;
import com.peas.platform.module.icims.base.auth.dto.UserRoleDto;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;

@Component
public class UserRoleDomainImpl extends BaseDomainImpl<UserRoleDto, UserRolePo> implements UserRoleDomain {

    @Resource
    private UserRoleRepository userRoleRepository;

    @Override
    public BaseRepository<UserRolePo> getMapper() {
        return userRoleRepository;
    }

    @Override
    public Class<? extends BaseRepository<UserRolePo>> getRepositoryClass() {
        return UserRoleRepository.class;
    }

}
